package com.czr.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 新闻资讯
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="czr_news对象", description="新闻资讯")
public class CzrNewsParam extends Model<CzrNewsParam> {

    @ApiModelProperty(value = "主键（修改新闻先获取id）")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    @NotEmpty(message = "标题不能为空！")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "正文")
    @NotEmpty(message = "正文不能为空！")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "摘要")
    @NotEmpty(message = "摘要不能为空！")
    @TableField("cAbstract")
    private String cAbstract;

    @ApiModelProperty(value = "h5列表页logo")
    @NotEmpty(message = "h5列表页logo！")
    @TableField("news_logo")
    private String newsLogo;

    @ApiModelProperty(value = "web列表页logo")
    @NotEmpty(message = "web列表页logo！")
    @TableField("web_logo")
    private String webLogo;

    @ApiModelProperty(value = "状态 0：保存 1：发布")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "是否轮播 0 非 1是")
    @TableField("is_lunbo")
    private Integer isLunbo;

    @ApiModelProperty(value = "是否快讯 0 非 1是")
    @TableField("is_kx")
    private Integer isKx;

    @ApiModelProperty(value = "栏目ID")
    @TableField("columnId")
    private Integer columnId;

}
